﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Public/Public.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="NhanAi.Public.Search" %>
<%@ Register Src="~/Public/PublicPagingBar.ascx" TagName="PagingBar" TagPrefix="uc" %>
<%@ Import Namespace="NhanAi.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title><asp:Literal ID="Literal1" runat="server" Text="<%$Resources:HmLanguage,search %>"></asp:Literal></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <% string lang = CurrentLanguage; %>
   
    <%if (Posts != null && Posts.Count > 0)
      { %>
    <h2 class="category-title"><%=Posts.Count%> <asp:Literal ID="litCount" runat="server" Text="<%$Resources:HmLanguage,search_results %>"></asp:Literal></h2>
   <%foreach (Post p in Posts)
     { %>
     <div class="cate-post-item clear">
        <img src="<%=p.Guid%>" class="post-thumbnail list-post-image left" />
        <h3 class="list-post-title"><a href="Post.aspx?id=<%=p.Id%>"> <%=lang == "vi" ? p.Title : p.TitleEn%></a></h3>
        <p class="list-post-excerpt">
            <%= lang == "vi" ? p.Excerpt : p.ExcerptEn%>
        </p>
    </div>
      
    <% }%>
       <uc:PagingBar runat="server" ID="paging" />
    <%} %>
</asp:Content>
